<template>
<div>
  <bannerSlide :banner="banner"></bannerSlide>
  <div class="container main">
    <div class="c-form polity-resolv">
      <div class="f-title">图解政策</div>
      <div class="f-list">
        <ul>
          <li v-for="(item,index) in Polity_resolve" :key="index">
            <div class="l-text">{{item.text}}</div>
            <div class="l-img">
              <img :src="item.img" alt="">
            </div>
            <div class="l-bottom">
                                            <span class="">
                                                <span><img src="../../../../static/images/eye.png" alt=""></span>
                                                <span>{{item.watch}}次阅读</span>
                                            </span>
              <span>
                                                <span><img src="../../../../static/images/calendar.png" alt=""></span>
                                                <span>{{item.time}}</span>
                                            </span>
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>
</div>
</template>

<script>
  import bannerSlide from '../../../views/polityPage/bannerSlide.vue'
    export default {
        name: "ActivityInformation",
      components:{bannerSlide},
      data(){
        return {
          activeName: 'first',
          banner: '../../../static/images/banner_polityService.png',//传给轮播组件的图片路径,
          Polity_resolve:[//图解政策
            {
              text:'入选者最高可获得30万奖励，一张图了解园区金鸡湖高...',
              img:'../../../static/images/demo_polity.png',
              watch:'800',
              time:'2019-04-07',
            },
            {
              text:'入选者最高可获得30万奖励，一张图了解园区金鸡湖高...',
              img:'../../../static/images/demo_polity.png',
              watch:'800',
              time:'2019-04-07',
            },
            {
              text:'入选者最高可获得30万奖励，一张图了解园区金鸡湖高...',
              img:'../../../static/images/demo_polity.png',
              watch:'800',
              time:'2019-04-07',
            },
            {
              text:'入选者最高可获得30万奖励，一张图了解园区金鸡湖高...',
              img:'../../../static/images/demo_polity.png',
              watch:'800',
              time:'2019-04-07',
            },
            {
              text:'入选者最高可获得30万奖励，一张图了解园区金鸡湖高...',
              img:'../../../static/images/demo_polity.png',
              watch:'800',
              time:'2019-04-07',
            }, {
              text:'入选者最高可获得30万奖励，一张图了解园区金鸡湖高...',
              img:'../../../static/images/demo_polity.png',
              watch:'800',
              time:'2019-04-07',
            }, {
              text:'入选者最高可获得30万奖励，一张图了解园区金鸡湖高...',
              img:'../../../static/images/demo_polity.png',
              watch:'800',
              time:'2019-04-07',
            }, {
              text:'入选者最高可获得30万奖励，一张图了解园区金鸡湖高...',
              img:'../../../static/images/demo_polity.png',
              watch:'800',
              time:'2019-04-07',
            },
          ]
        }
        }
    }
</script>

<style lang="less" scoped>

  .c-form{
    padding: 25px 0;
    .f-title{
      color: #333333;
      font-size: 24px;
      padding-left: 30px;
      position: relative;
      &::before{
        content: '';
        position: absolute;
        left: 0;
        height: 40px;
        width: 8px;
        background: #1575F9;
        top: 0px;
      }
    }
    .f-list{
      margin-top: 5px;
      &>ul{
        li{
          display: inline-block;
          margin-left: 1.5%;
          width: 23%;
          text-align: center;
          margin-bottom: 20px;
        }
      }
    }
  }
  .polity-resolv{

    .f-list{
      margin-top: 30px;
      &>ul{
        li{
          background: #fff;
          padding: 20px 0 15px;
          .l-text{
            text-overflow: -o-ellipsis-lastline;//两行超出隐藏
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            width: 90%;
            margin: 0 auto;
            font-size: 18px;
            font-family:MicrosoftYaHei;
            font-weight:400;
          }
          .l-img{
            margin-top: 15px;
            img{
              width: 100%;
            }
          }
          .l-bottom{
            font-size:14px;
            color: #999999;
            font-family:MicrosoftYaHei;
            font-weight:400;
            width: 90%;
            margin: 15px auto 0;
            &>span{
              &:first-child{
                float: left;
              }
              &:last-child{
                float: right;
              }
            }
          }

        }
      }
    }
  }
</style>
